package com.service.impl;

import com.entity.table.FUserTableDef;
import com.mybatisflex.core.query.QueryWrapper;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.entity.FUser;
import com.mapper.FUserMapper;
import com.service.FUserService;
import org.springframework.stereotype.Service;

/**
 * 用户表 服务层实现。
 *
 * @author admin
 * @since 2024-05-22
 */
@Service
public class FUserServiceImpl extends ServiceImpl<FUserMapper, FUser> implements FUserService {

    public FUser selectFUser(FUser fUser) {
        QueryWrapper query = QueryWrapper.create()
                .where(FUserTableDef.F_USER.USER_NAME.eq(fUser.getUserName()))
                .and(FUserTableDef.F_USER.PWD.eq(fUser.getPwd()));
        FUser res = getOne(query);
        return res;
    }

}
